﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TR0217.ControlEx
{
    public partial class ColorPickerDialog : Form
    {
        static ColorPickerDialog _instance;
        public static ColorPickerDialog Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new ColorPickerDialog();
                }
                return _instance;
            }
        }

        public ColorPickerDialog()
        {
            InitializeComponent();
        }


        public Color SelectedColor
        {
            get { return colorPickerCtrl1.SelectedColor; }
        }
    }
}